$def with(form)
$var title:配置
$:partial.navbar('settings')

<form action="/settings" method="post">
	<div class="heading">
		<span>配置</span>
		<div style="float:right">
			<input type="submit" class="btn btn-primary" value="保存配置" />
		</div>
	</div>
	
	$if not form.valid: 
		<div class="alert alert-error">请完善表单信息</div>
	$:form.rendernote(form.note)
	<div class="editarea">
	$for item in form.inputs:
		$if item.is_hidden():
			$:item.render()
		$else:
			<div class="form-item">
				<label>$:item.description</label>
				$:item.render()
			</div>
	</div>
</form>